Skip to content

Validate extracted Javadoc snippets during javadoc build; refresh GeneratedCN1Access (add java.time, remove impl entries)#4668

Merged
liannacasper merged 2 commits intomasterfrom
codex/fix-playground-component-recognition-error-dffkjz
Mar 30, 2026
Merged

Validate extracted Javadoc snippets during javadoc build; refresh GeneratedCN1Access (add java.time, remove impl entries)#4668
liannacasper merged 2 commits intomasterfrom
codex/fix-playground-component-recognition-error-dffkjz

Conversation

@liannacasper
Copy link
Copy Markdown
Collaborator

Motivation

  • Prevent broken or hung JavaDoc generation by validating extracted javadoc snippets before running javadoc and timeboxing validation.
  • Update the generated CN1 access registry to match upstream API changes by removing internal implementation types and adding new public API types (notably Java 8 time classes and a UI type).

Description

  • Added a run_with_timeout() helper and a pre-generation step in .github/scripts/build_javadocs.sh that runs validate-extracted-javadoc-snippets.sh (if executable) with a 300-second timeout and fails the script on timeout or non-zero exit.
  • Kept the existing temp source staging and the javadoc invocation and added explicit messaging on validation and timeout handling.
  • Replaced/regenerated scripts/cn1playground/common/src/main/java/bsh/cn1/GeneratedCN1Access.java to remove com.codename1.impl.* entries, add com.codename1.ui.AbstractDialog and many java.time.* classes (including format/temporal types), and to expand/repartition the class/method/field index implementation (introduced additional fill*Index partitions such as index 11) to accommodate the new entries.
  • Adjusted imports and method/field indices throughout the generated registry to reflect the new/removed types and maintain indexing consistency.

Testing

  • No automated tests were executed for these changes.

Codex Task

…-error-dffkjz

Signed-off-by: liannacasper <67953602+liannacasper@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@github-actions
Copy link
Copy Markdown

Cloudflare Preview

@liannacasper liannacasper merged commit c49c2b8 into master Mar 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant